package com.business.service.interfaced.impl;


import javax.annotation.Resource;
import org.springframework.stereotype.Service;

import com.business.service.interfaced.ProColorSizeInManager;
import com.system.dao.DaoSupport;
import com.system.util.PageData;

/** 
 * 说明： 商品尺寸颜色表
 * 创建人：zhaozhenhua
 * 创建时间：2018-01-30
 * @version
 */
@Service("procolorsizeInService")
public class ProColorSizeInService implements ProColorSizeInManager{

	@Resource(name = "daoSupport")
	private DaoSupport dao;
	
	/**新增
	 * @param pd
	 * @throws Exception
	 */
	public void save(PageData pd)throws Exception{
		dao.save("ProcolorsizeInMapper.save", pd);
	}
	
	/**删除
	 * @param pd
	 * @throws Exception
	 */
	public void delete(PageData pd)throws Exception{
		dao.delete("ProcolorsizeInMapper.delete", pd);
	}
	
	/**修改
	 * @param pd
	 * @throws Exception
	 */
	public void edit(PageData pd)throws Exception{
		dao.update("ProcolorsizeInMapper.edit", pd);
	}
	
	
	/**列表(全部)
	 * @param pd
	 * @throws Exception
	 */
	public PageData listAll(PageData pd)throws Exception{
		return (PageData)dao.findForObject("ProcolorsizeInMapper.listAll", pd);
	}
	
	/**通过id获取数据
	 * @param pd
	 * @throws Exception
	 */
	public PageData findById(PageData pd)throws Exception{
		return (PageData)dao.findForObject("ProcolorsizeInMapper.findById", pd);
	}
	
	/**批量删除
	 * @param ArrayDATA_IDS
	 * @throws Exception
	 */
	public void deleteAll(String[] ArrayDATA_IDS)throws Exception{
		dao.delete("ProcolorsizeInMapper.deleteAll", ArrayDATA_IDS);
	}
	
}

